<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../static/css/kucun.css" rel="stylesheet" type="text/css">					
</head><body><div class="container-fluid" style="min-width:890px">
<form class="form-inline  clearfix" role="form" method="post" id="formSave">
	<div class="row-fluid clearfix">
	<div class="span12">
		<fieldset>
			<legend class="clearfix">
				<div class="form-group pull-left le-inline title-w">
					<label class="label l-account title-yaop"><span></span>新建药品</label>
				</div>
 				<div class="row row-obtn" id="yp-tabel">
					<div class="b-btn text-center ">
					<button class="btn obtn b-save button" id="btnSubmit">保存</button>
					<div class="btn obtn b-cancel button button1"><span class="glyphicon" style="font-family:&#39;Microsoft Yahei&#39;;line-height: 32px;">取消</span></div>
					</div>
			</div>
			</legend>
		</fieldset>
	</div>
	</div>
    <div class="row-fluid clearfix u-border" style="background:#fff;">
            	<div class="row row-margin row-content" id="yp-tabel">
                        <div class="form-group  col-xs-4  col-sm-4">
                           <div class="row">
	                           <label class="label row-title col-xs-4  col-sm-4"> <span class="glyph-star">*</span>药品名称:</label>
	                           <div class="btn-group  col-xs-6  col-sm-6 dropdown-search-li" style="padding:0">
	                           		<input type="hidden" name="pingtaiypid" id="hipingtaiypid">
	                           		<input type="text" class="input-sm  dropdown-toggle input-box mingchengtxm a-yaopin-add" autocomplete="off" placeholder="请输入药品名" data-rule="药品名: required;" data-target="#msg_holder" onkeyup="getYaopinzd()" name="mingcheng" id="mingcheng"> 
								    <ul id="dropdownli" class="dropdown-menu li-width f-input-li a-yaopinul-add" style="display:none;width:521% !important; border:none;" role="menu">
								   	</ul>
								</div>
							</div>
                        </div>
                        <div class="form-group col-xs-4  col-sm-4">
                       		 <div class="row">
	                            <label class="label col-xs-4  col-sm-4">药品别名:</label>
	                            <input type="text" class="input-sm  input-box col-xs-6  col-sm-6" name="bieming" id="bieming">
                            </div>
                        </div>
                       <div class="form-group col-xs-4  col-sm-4">
                       		 <div class="row">
	                            <label class="label col-xs-4  col-sm-4">商品名称:</label>
	                            <input type="text" class="input-sm  input-box col-xs-6  col-sm-6" name="shangpinming" id="shangpmc">
                            </div>
                        </div>
                </div>
                <div class="row row-margin row-content" id="yp-tabel">
                       <div class="form-group  col-xs-4  col-sm-4">
	                        <div class="row">
	                            <label class="label col-xs-4  col-sm-4 row-title"><span class="glyph-star">*</span>药品类型:</label>
	                              <input type="hidden" name="leixing" id="hileixing">
	                              <div class="btn-group col-xs-6 col-sm-6 dropdown-search-li" style="padding:0">
								   <div class="btn dropdown-toggle  u-button-select" data-toggle="dropdown" style="width:200px;" id="leixing" tabindex="0">请选择</div>
								   <ul class="dropdown-menu li-width yaopinlx" role="menu" style="width:200px;">
								      <li value="1">饮片</li>
								      <li value="2">中成药</li>
								      <li value="3">化学制药</li>
								      <li value="4">生物制药</li>
								      <li value="5">其他</li>
								   </ul>
								  </div>
							</div>
                        </div>
                        <!-- 剂型 -->
                        <div class="form-group col-xs-4 col-sm-4">
	                         <div class="row">
	                            <label class="label col-xs-4  col-sm-4 "><span class="glyph-star">*</span>剂型:</label>
							     <div class="btn-group col-xs-6  col-sm-6 dropdown-search-li" style="padding:0">
	                           		<input type="text" class="input-sm input-box dropdown-toggle" name="jixing" id="jixing" data-rule="剂型:length[~20];" data-target="#msg_holder">
								    <ul class="dropdown-menu li-width f-input-li f-bt-li" id="jixingul" style="display:none;border:none; width:200px; " role="menu">
								    </ul>
								</div>
							 </div>
                        </div>
                        <div class="form-group col-xs-4   col-sm-4">
                          <div class="row">
	                            <label class="label col-xs-4 row-title col-sm-4 "><span class="glyph-star">*</span>处方价:</label>
							    <input type="text" class="input-sm col-xs-6 input-box col-sm-6 unit inp-select" id="cfj" name="xiaoshoujia" data-rule="处方价: required;length[~15];range(0~)" data-target="#msg_holder">
							    <div class="unit-content4">
							    	<label class="label" style="float:left;font-size:14px;padding:0;margin-left:8px;">元 /</label>
							    	<span class="col-xs-1  col-sm-1 f-danwei f-danwei2 span-danwei cese" style="font-size:14px;"></span>
							    </div>
							    
							     <div id="dijia"></div>
						   </div>
                        </div>
                </div>
                <div class="row row-margin row-content" id="yp-tabel">
                        <div class="form-group  col-xs-8  col-sm-8 ">
                        	 <div class="row">
	                            <label class="label col-xs-2  col-sm-2 row-title"><span class="glyph-star">*</span>包装规格:</label>
	                            <input type="text" class="input-sm col-xs-3 input-box col-sm-3" name="baozhuanggg" style="width:450px;" id="baozhuanggg" placeholder="如：25.00/瓶*1盒" data-rule="包装规格: required;" data-target="#msg_holder">
	                            <!-- <label class="label" style="float:left;font-size:20px;text-align:center;padding:0 5px;">/</label> -->
		                             <div class="btn-group col-xs-2  col-sm-2 col-md-2 col-lg-1 dropdown-search-li" style="padding:0; margin-left:8px; width:74px;">
			                             <input type="text" name="baozhuangdw" class="kc-baozhuangdw f-baozhuangdw dropdown-toggle" id="baozhuangdw" data-target="#msg_holder" style="width:74px;cursor: pointer;" placeholder="单位">
									     <ul class="dropdown-menu li-width " id="baozhuangdwul" role="menu">
										      <li>盒</li>
										      <li>千克</li>
										      <li>克</li>
										      <li>瓶</li>
										      <li>支</li>
										      <li>袋</li>
										      <li>丸</li>
										      <li>片</li>
										      <li>粒</li>
										      <li>板</li>
								   		</ul>
									</div>
	                              </div>
                           </div>
                        <div class="form-group col-xs-4   col-sm-4">
			            	<div class="row">
			                	<label class="label col-xs-4  col-sm-4 ">生产厂家:</label>
								<input type="text" class="input-sm col-xs-6 input-box col-sm-6" id="yp-shengchancj" name="shengchancj" data-rule="生产厂家:length[~200];" data-target="#msg_holder">
							</div>
                        </div>
                 </div>
                
                 <div class="row row-margin  row-content" id="yp-tabel">
                       <div class="form-group col-xs-4 col-sm-4">
                           <div class="row">
                            <label class="label col-xs-4  col-sm-4">OTC:</label>
						      <div class="col-xs-8  col-sm-8  g-shield g-radio-shield" style="margin-top:0.5rem">
								   <input type="radio" class="f-OTC" id="OTC1" name="otcbz" checked="checked" value="1">
								   <label class="f-adotc on" name="OTC1">&nbsp;&nbsp;&nbsp;是</label>
								    <input type="radio" class="f-OTC" id="OTC2" name="otcbz" value="0">
								   <label class="f-adotc" name="OTC2" style="margin-left:6%;padding-left:1.3rem">&nbsp;&nbsp;&nbsp;否</label>	
                  			 </div>
                  		  </div>
                        </div>
                        <div class="form-group  col-xs-4  col-sm-4  col-md-4 col-lg-4">
	                        <div class="row">
	                            <label class="label col-xs-4  col-sm-4  ">批准文号:</label>
							    <input type="text" class="input-sm  col-xs-6 input-box col-sm-6" id="pizhunwh" name="pizhunwh" data-rule="批准文号:length[~64];" data-target="#msg_holder">
							</div>
                        </div>
                        <div class="form-group  col-xs-4  col-sm-4  col-md-4 col-lg-4">
	                        <div class="row">
	                            <label class="label col-xs-4  col-sm-4  ">药品条形码:</label>
							    <input type="text" class="input-sm  input-box col-xs-6  col-sm-6" id="tiaoxingma" name="tiaoxingma" data-rule="药品条形码:integer[+];length(13~13);" data-msg="请输入正确的条形码" data-target="#msg_holder">
							</div>
                        </div>
                </div>
                
                <div class="row row-margin row-content" id="yp-tabel" style="height:56px;">
                 		<div class="form-group  col-xs-4  col-sm-4  col-md-4 col-lg-4">
		                        <div class="row">
		                            <label class="label col-xs-4  col-sm-4  ">货架码:</label>
								    <input type="text" class="input-sm input-box col-xs-6  col-sm-6" id="huojiama" name="huojiama" data-rule="货架码:length[~32];" data-target="#msg_holder">
								</div>
                        </div>
                    	 <div class="form-group  col-xs-4  col-sm-4">
                        <div class="row">
                           		<label class="label col-xs-4  col-sm-4 ">支持拆零:</label>
							      <div class="col-xs-8 col-sm-8  g-shield g-radio-shield" style="margin-top:0.5rem;position:relative;">
									   <input type="radio" id="linshou1" class="chailingbz" name="chailingbz" value="1">
									   <label class="f-bz dialog-chalin" id="cai-dialog" name="linshou1">&nbsp;&nbsp;&nbsp;是</label>
									    <input type="radio" id="linshou2" name="chailingbz" class="chailingbz" checked="checked" value="0">
									   <label class="f-bz  on" name="linshou2" style="margin-left:6%;padding-left:1.3rem">&nbsp;&nbsp;&nbsp;否</label>
									   <div class="small-zhezhao"></div>	
	                  			 </div>
                  	    </div>
                        </div>
                        <div class="form-group  col-xs-4  col-sm-4" id="show-hidden" style="display:none;width:332px;">
	                          <div class="row">
	                             <label class="label col-xs-4  col-sm-4 ">拆零数量:</label>
	                               <div class="col-xs-4  col-sm-4 cldw-input-out" style="padding:0; width:100px;">
								         <input type="text" class="input-sm f-cailinhs" style="height: 36px;width:100%;border-radius: 0; border:solid 1px #ccc;" placeholder="换算比" name="chailingsl" id="chailingsl" data-rule="拆零单位:integer;length[~32];" data-target="#msg_holder">
								   </div>
	                               <div class="from-group col-xs-2  col-sm-2 select-menu dropdown-search-li" style="padding:0;width:60px;">
	                               		<input type="hidden" name="chailingdw" id="hichailingdw">
			                           	  <div class="btn dropdown-toggle  u-button-select f-cailindw bg-none unit" data-toggle="dropdown" tabindex="0" id="chailingdw" style="color:#777;padding-right: 50px;margin-left:8px; height:36px; z-index:100; width:92px;">单位</div>
										     <ul class="dropdown-menu li-width f-bt-li " id="cailindw" role="menu">
										      <li>片</li>
										      <li>克</li>
										      <li>粒</li>
										      <li>支</li>
										      <li>袋</li>
										      <li>丸</li>
										      <li>枚</li>
										      <li>个</li>
										      <li>板</li>
											  <li>小盒</li>
									   		</ul>
									</div>
									<div class="unit-content" style="left: 255px;">
										<label class="label label-dis" id="cailjgf" style="float:left;font-size:14px;text-align:center;padding:0 6px 0 8px;color:#333; display:none;">/</label>
	                              		<span class="label col-xs-1  col-sm-1 f-danwei cese" id="chailingbzdw" style="font-size:14px;text-align:left;"></span>
									</div>
	                              
	                         </div>
	                        </div>
                </div>
                 <div class="row row-margin row-content" id="yp-tabel">
                        <div class="form-group col-xs-4 col-sm-4">
	                         <div class="row">
	                            <label class="label col-xs-4  col-sm-4 ">用法:</label>
							     <div class="btn-group col-xs-6  col-sm-6 dropdown-search-li" style="padding:0">
	                           		<input type="text" class="input-sm input-box dropdown-toggle" name="yongfa" id="yongfa" data-rule="用法:length[~64];" data-target="#msg_holder">
								    <ul class="dropdown-menu li-width f-input-li" id="yongfaul" style="display:none;border:none; width:200px; " role="menu">
								   </ul>
								</div>
							 </div>
                        </div>
                         <div class="form-group  col-xs-4  col-sm-4">
                         	<div class="row">
	                            <label class="label col-xs-4  col-sm-4">单次剂量:</label>
	                            <div class="col-xs-4  col-sm-4" style="padding:0;width:130px;">
							         <input type="text" class="input-sm" style="width:100%;border:solid 1px #ccc;border-radius: 0;" placeholder="单次计量" id="dancijl" name="dancijl" data-target="#msg_holder">
							    </div>
							      <!-- <label class="label" style="float:left;font-size:20px;text-align:center;padding:0 0 0 8px;">/</label> -->
							    <input type="hidden" name="jiliangdw" id="hijiliangdw">
	                            <div class="btn-group col-xs-2 col-sm-2 dropdown-search-li" style="padding:0 0 0 8px;width:70px;">
									 <div class="btn dropdown-toggle  u-button-select bg-none" data-toggle="dropdown" tabindex="0" id="f-dcjl" style="color:#777;">单位</div>
									   <ul class="dropdown-menu li-width f-bt-li" id="danci-jldw" style="width:63px; margin-left:8px;" role="menu">
									      <li>片</li>
									      <li>粒</li>
									      <li>支</li>
									      <li>袋</li>
									      <li>丸</li>
									      <li>枚</li>
									      <li>克</li>
						                  <li>g</li>
									      <li>ml</li>
										  <li class="wushuju" style="padding-left:0;text-align:center;">适量</li>
									   </ul>
								  </div>
							</div>
                        </div>
                         <div class="form-group col-xs-4   col-sm-4">
                          <div class="row">
                            <label class="label col-xs-4  col-sm-4">使用频率:</label>
							     <div class="btn-group col-xs-6   col-sm-6 dropdown-search-li" style="padding:0">
	                           		<input type="text" class="input-sm input-box dropdown-toggle" id="yongyaopl" name="yongyaopl" onfocus="getZDYongyaoplBymc(this)" onkeyup="getZDYongyaoplBymc(this)" data-rule="使用频率:length[~64];" data-target="#msg_holder">
								    <ul id="yongyaoplul" class="dropdown-menu li-width f-input-li" style="display:none; width:200px; border:none;" role="menu">
								   </ul>
								</div>
							</div>
                        </div>
                </div>
                 <div class="row row-margin row-content" id="yp-tabel">
                       
                        <div class="form-group  col-xs-4 col-sm-4">
                      		<div class="row">
	                              <label class="label col-xs-4  col-sm-4">默认开药量:</label>
	                              <div class="col-xs-4  col-sm-4" style="padding:0;">
							         <input type="text" class="input-sm" style="width:126px;border-radius: 0; border:solid 1px #ccc;" placeholder="单次计量" id="morenkyl" name="morenkyl" data-target="#msg_holder">
							      </div>
							      <input type="hidden" name="morenkydw" id="himorenkydw">
	                               <div class="btn-group col-xs-2 col-sm-2 dropdown-search-li" style="padding:0 0 0 8px; width:74px; margin-left:15px;">
									   <div class="btn dropdown-toggle  u-button-select f-mrkydanwei bg-none cese" data-toggle="dropdown" tabindex="0" id="morenkydw" placeholder="单位" style="color:#777;height:34px;"></div>
									   <ul class="dropdown-menu li-width f-bt-li" style="width:66px; margin-left:8px;" id="morengkaiyao" role="menu">
									   </ul>
								  </div>
							</div>
                        </div>
                         <div class="form-group col-xs-4  col-sm-4">
	                         <div class="row">
	                            <label class="label col-xs-4 col-sm-4">医嘱:</label>
							    <input type="text" class="input-sm input-box col-xs-6 col-sm-6" name="yizhu" id="yizhu" data-rule="医嘱:length[~300];" data-target="#msg_holder">
							</div>
                        </div>
                        <div class="form-group  col-xs-4  col-sm-4" style="text-align:center">
		                        <div class="row">
		                           <label class="label col-xs-4  col-sm-4 ">状态:</label>
		                           <input type="hidden" name="jinyongbz" id="hijinyongbz">
		                               <div class="btn-group col-xs-6  col-sm-6 dropdown-search-li" style="padding:0">
										   <div class="btn dropdown-toggle  u-button-select" data-toggle="dropdown" tabindex="0" id="jinyongbz" style="color:#333; width:200px;">启用</div>
										   <ul class="dropdown-menu li-width f-bt-li" style=" width:200px;" role="menu">
										      <li value="0">启用</li>
										      <li value="1">禁用</li>
										   </ul>
									  </div>
							  </div>
                      </div>
                </div>
                 <div class="row row-margin row-content" id="yp-tabel">
                         <div class="form-group col-xs-4   col-sm-4  col-md-4 col-lg-4">
		                       <div class="row">
		                            <label class="label col-xs-4  col-sm-4 row-title"><span class="glyph-star">*</span>库存:</label>

								    <input type="text" class="input-sm col-xs-6 input-box col-sm-6 unit" name="kucunsl" id="kucun" data-target="#msg_holder">
								    <span class="label col-xs-1  col-sm-1 f-danwei f-danwei2 unit-content3 cese" style="font-size:14px;text-align:left;margin-left:1rem;"></span>
							   </div>
                        </div>
                        <div class="form-group  col-xs-4 col-sm-4">
		                       <div class="row">
		                            <label class="label col-xs-4 col-sm-4">库存下限:</label>
								    <input type="text" class="input-sm col-xs-6 input-box col-sm-6 f-kucunxiaxian unit" id="kucunxx" name="kucunxx" data-rule="库存下限:integer;length[~8];" data-target="#msg_holder">
								    <span class="label col-xs-1  col-sm-1 f-danwei f-danwei2 unit-content3 cese" style="font-size:14px;text-align:left;margin-left:1rem;"></span>
								    </div>
		                        </div>
                         <div class="form-group  col-xs-4 col-sm-4" id="open-close" style="display:none">
		                        <div class="row">
		                            <label class="label col-xs-4 col-sm-4">预警:</label>
		                            <input type="hidden" name="dikucyjkg" id="hidikucyjkg">
								      <div class="btn-group  col-xs-6 col-sm-6 dropdown-search-li" style="padding:0">
										   <div class="btn dropdown-toggle  u-button-select f-yujing" data-toggle="dropdown" tabindex="0" id="dikucyjkg" style="color:#333;width:200px;">请选择
										   </div>
										   <ul class="dropdown-menu li-width f-bt-li" style="width:200px;" role="menu">
										      <li value="1">开启</li>
										      <li value="0">关闭</li>
										   </ul>
									  </div>
								</div>
                        </div>
                        
                </div>
                <div class="row row-margin row-content" id="yp-tabel">
                	<div class="form-group  col-xs-4 col-sm-4">
                        <div class="row">
                            <label class="label col-xs-4 col-sm-4">备注:</label>
						    <input type="text" class="input-sm input-box col-xs-6 col-sm-6" name="beizhu" id="beizhu" data-rule="备注:length[~1024];" data-target="#msg_holder">
						</div>
                    </div>
                 </div>
                <input type="reset" name="reset" style="display: none;">
   </div>
  </form>
</div> 
<script src="../static/js/yaopin-add.js"></script>
<script type="text/javascript">
	var kucunpckg = true;
	getYaopintjcs(kucunpckg);
</script>
	
</body></html>